//
//  ZHConsultMessageViewController.m
//  Doctor
//
//  Created by liuzhishan on 16/1/18.
//  Copyright © 2016年 shanshan. All rights reserved.
//

#import "ZHConsultMessageViewController.h"

@interface ZHConsultMessageViewController ()

@end

@implementation ZHConsultMessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"message";
    self.view.backgroundColor = [UIColor blackColor];
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.backgroundColor = [UIColor purpleColor];
    
    [self.view addSubview:btn];
    
    
    [btn mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.center.equalTo(self.view);
        make.width.and.height.equalTo(@200);
        
    }];
    
    
    
    [btn addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpInside];
    
    
}

-(void)click
{
    UIViewController *vc = [[UIViewController alloc]init];
    vc.view.backgroundColor = [UIColor blackColor];
    
    [self.navigationController pushViewController:vc animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
